package com.tencent.stat.event;

import java.util.Properties;
import org.json.JSONArray;
import org.json.JSONObject;

public class c
{
  public String a;
  public JSONArray b;
  public JSONObject c = null;

  public c()
  {
  }

  public c(String paramString, String[] paramArrayOfString, Properties paramProperties)
  {
    this.a = paramString;
    if (paramProperties != null)
    {
      this.c = new JSONObject(paramProperties);
      return;
    }
    if (paramArrayOfString != null)
    {
      this.b = new JSONArray();
      int j = paramArrayOfString.length;
      int i = 0;
      while (true)
      {
        if (i < j);
        paramString = paramArrayOfString[i];
        this.b.put(paramString);
        i += 1;
      }
    }
    this.c = new JSONObject();
  }

  public boolean equals(Object paramObject)
  {
    if (paramObject == null);
    do
    {
      return false;
      if (this == paramObject)
        return true;
    }
    while (!(paramObject instanceof c));
    paramObject = (c)paramObject;
    return toString().equals(paramObject.toString());
  }

  public int hashCode()
  {
    return toString().hashCode();
  }

  public String toString()
  {
    StringBuilder localStringBuilder = new StringBuilder(32);
    localStringBuilder.append(this.a).append(",");
    if (this.b != null)
      localStringBuilder.append(this.b.toString());
    if (this.c != null)
      localStringBuilder.append(this.c.toString());
    return localStringBuilder.toString();
  }
}